# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test02
# Description:  例25.2
# Author:       ASUS
# Date:         2019/4/8
#-------------------------------------------------------------------------------


import pandas
df = pandas.read_csv("gapminder.tsv",sep="\t")
# 获取一列数据返回，并返回series对象
country_df = df['country']
print(country_df.head(2))
print(country_df.tail(2))
country_sr = df[['country','continent','year']]
print(country_sr.head(2))
print(country_sr.tail(2))




